work and final speed including friction